addSwitch

open fun addSwitch(commandLineSwitch: String): EngineOptions.Builder

Adds the switch to the list of the switches that will be passed to the Chromium process.

Important For advanced usage only. The library does not support all the possible Chromium switches, so there is no guarantee that the passed switches will work. All the supported switches can be set through the corresponding methods of this builder. Switches added using this method will overwrite the corresponding options configured through the methods of this builder.

For example, if you configure the remote debugging port using the remoteDebuggingPort method and then add the --remote-debugging-port switch using this method, the port from the switch will be used.

Throws

when the commandLineSwitch is empty or blank